package com.haierp.model.purchase;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * 采购入库单
 * @author 朱路
 *
 */
public class PurchaseStorage implements Serializable{
	

	/** 主键id */
	@TableId(type = IdType.AUTO)
	private Long id;
	@TableField(value = "buyer_name")
	private String buyerName;
	@TableField(value = "buyer_id")
	private Long buyerId;
	//订单号
	@TableField(value = "sto_order_no")
	private String stoOrderNo;
	@TableField(value = "total_trans_quantity")
	private Integer totalTransQuantity;
	@TableField(value = "total_quantity")
	private Integer totalQuantity;
	@TableField(value = "total_price")
	private Double totalPrice;
	@TableField(value = "tax_rate")
	private Double taxRate;
	@TableField(value = "total_tax_price")
	private Double totalTaxPrice;
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	@TableField(value = "gmt_modify")
	private Date gmtModify;
	@TableField(value = "user_create")
	private String userCreate;
	@TableField(value = "user_modify")
	private String userModify;
	
	@TableField(value = "warehouse_id")
	private Long warehouseId;
	@TableField(value = "warehouse_name")
	private String warehouseName;
	
	private Integer status;
	@TableField(value = "storage_type")
	private Integer storageType;
	
	private String remark;
	
	@TableField(exist = false)
	private Integer totalTaskDailyCount;	//总计划采购数
	
	@TableField(exist = false)
	private Integer totalIntcount;	//计划数量
	
	/**
	 * 入库时间
	 */
	@TableField(value = "put_in_date")
	private Date putInDate;
	
	@TableField(value = "company_id") //所属公司id
	private Long companyId;

	@TableField(value = "merge_ids") //合并入库单ID
	private String mergeIds;

	@TableField(exist = false)
	private List<PurchaseStorageDetail> purchaseStorageDetailList;

	@TableField(exist = false)
	private boolean ifConfirm = false;// 是否直接入库

	@TableField(exist = false)
	private String taskTitle;
	
	
	@TableField(value = "online_number") // 网购单号
	private String onlineNumber;
	
	
	@TableField(exist = false)
	private String linebuyerName;
	
	@TableField(exist = false)
	private Long linebuyerId;
	
	
	@TableField(exist = false)
	private Long linewarehouseId;
	
	@TableField(value = "task_daily_id")
	private Long taskDailyId;

	public Long getBuyerId() {
		return buyerId;
	}
	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getBuyerName() {
		return buyerName;
	}
	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}

	public String getStoOrderNo() {
		return stoOrderNo;
	}
	public void setStoOrderNo(String stoOrderNo) {
		this.stoOrderNo = stoOrderNo;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public Date getGmtModify() {
		return gmtModify;
	}
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}
	public String getUserCreate() {
		return userCreate;
	}
	public void setUserCreate(String userCreate) {
		this.userCreate = userCreate;
	}
	public String getUserModify() {
		return userModify;
	}
	public void setUserModify(String userModify) {
		this.userModify = userModify;
	}
	public Long getWarehouseId() {
		return warehouseId;
	}
	public void setWarehouseId(Long warehouseId) {
		this.warehouseId = warehouseId;
	}
	public String getWarehouseName() {
		return warehouseName;
	}
	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}
	public List<PurchaseStorageDetail> getPurchaseStorageDetailList() {
		return purchaseStorageDetailList;
	}
	public void setPurchaseStorageDetailList(List<PurchaseStorageDetail> purchaseStorageDetailList) {
		this.purchaseStorageDetailList = purchaseStorageDetailList;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getPutInDate() {
		return putInDate;
	}
	public void setPutInDate(Date putInDate) {
		this.putInDate = putInDate;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getTotalQuantity() {
		return totalQuantity;
	}
	public void setTotalQuantity(Integer totalQuantity) {
		this.totalQuantity = totalQuantity;
	}
	public Integer getTotalTransQuantity() {
		return totalTransQuantity;
	}
	public void setTotalTransQuantity(Integer totalTransQuantity) {
		this.totalTransQuantity = totalTransQuantity;
	}
	public Double getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	public Double getTaxRate() {
		return taxRate;
	}
	public void setTaxRate(Double taxRate) {
		this.taxRate = taxRate;
	}
	public Double getTotalTaxPrice() {
		return totalTaxPrice;
	}
	public void setTotalTaxPrice(Double totalTaxPrice) {
		this.totalTaxPrice = totalTaxPrice;
	}
	public Integer getTotalTaskDailyCount() {
		return totalTaskDailyCount;
	}
	public void setTotalTaskDailyCount(Integer totalTaskDailyCount) {
		this.totalTaskDailyCount = totalTaskDailyCount;
	}
	public Integer getStorageType() {
		return storageType;
	}
	public void setStorageType(Integer storageType) {
		this.storageType = storageType;
	}
	public Integer getTotalIntcount() {
		return totalIntcount;
	}
	public void setTotalIntcount(Integer totalIntcount) {
		this.totalIntcount = totalIntcount;
	}
	public Long getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}
	public String getMergeIds() {
		return mergeIds;
	}
	public void setMergeIds(String mergeIds) {
		this.mergeIds = mergeIds;
	}
	public boolean isIfConfirm() {
		return ifConfirm;
	}
	public void setIfConfirm(boolean ifConfirm) {
		this.ifConfirm = ifConfirm;
	}
	public String getTaskTitle() {
		return taskTitle;
	}
	public void setTaskTitle(String taskTitle) {
		this.taskTitle = taskTitle;
	}
	public String getOnlineNumber() {
		return onlineNumber;
	}
	public void setOnlineNumber(String onlineNumber) {
		this.onlineNumber = onlineNumber;
	}
	public String getLinebuyerName() {
		return linebuyerName;
	}
	public void setLinebuyerName(String linebuyerName) {
		this.linebuyerName = linebuyerName;
	}
	public Long getLinebuyerId() {
		return linebuyerId;
	}
	public void setLinebuyerId(Long linebuyerId) {
		this.linebuyerId = linebuyerId;
	}
	public Long getLinewarehouseId() {
		return linewarehouseId;
	}
	public void setLinewarehouseId(Long linewarehouseId) {
		this.linewarehouseId = linewarehouseId;
	}
	public Long getTaskDailyId() {
		return taskDailyId;
	}
	public void setTaskDailyId(Long taskDailyId) {
		this.taskDailyId = taskDailyId;
	}
	
	
}
